﻿<%@ Page Title="Thumbnail" Language="C#" MasterPageFile="~/Posts/Posts.master" AutoEventWireup="true" CodeFile="Thumbnail.aspx.cs" Inherits="Posts_Thumbnail" %>
<%@ Register Src="Header.ascx" TagPrefix="uc" TagName="Header"  %>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc:Header id="ucHeader" runat="server" />
    <asp:Panel ID="Panel1" CssClass="tabPage" runat="server">
        <div class="actionButtons clearfix">
            <acms:ActionButton ID="lnkEdit" Text="Edit" CssClass="edit" runat="server" onclick="lnkEdit_Click" />
            <asp:LinkButton ID="lnkSave" Text="Save" CssClass="save" runat="server" onclick="lnkSave_Click" />
            <asp:LinkButton ID="lnkCancel" Text="Cancel" CssClass="cancel" runat="server" onclick="lnkCancel_Click" />
        </div>
        <asp:Panel ID="pnlUploadThumb" runat="server">
            <h2>Upload Thumnail</h2>
            <telerik:RadUpload ID="upload" ControlObjectsVisibility="None" InitialFileInputsCount="1" MaxFileInputsCount="1" runat="server" />
        </asp:Panel>
        <asp:Panel ID="pnlNoThumb" runat="server">This post does not have a thumbnail.</asp:Panel>
        <acms:Columns ID="colThums" IncludeShadow="false" runat="server">
            <acms:SingleColumn ID="SingleColumn3" runat="server">
                <span>150x150</span>
                <div style="text-align:center">  
                    <acms:AcmsImage ID="img150150" RenderHeight="150" RenderWidth="150" FileId='<%#Eval("ThumbnailId") %>' runat="server" />
                </div>
            </acms:SingleColumn>
            <acms:SingleColumn ID="col100100" runat="server">
                <span>100x100</span>
                <div style="text-align:center">  
                    <acms:AcmsImage ID="img100100" RenderHeight="100" RenderWidth="100" FileId='<%#Eval("ThumbnailId") %>' runat="server" />
                </div>
            </acms:SingleColumn>
            <acms:SingleColumn ID="SingleColumn1" runat="server">
                <span>50x50</span>
                <div style="text-align:center">  
                    <acms:AcmsImage ID="img5050" RenderHeight="50" RenderWidth="50" FileId='<%#Eval("ThumbnailId") %>' runat="server" />
                </div>
            </acms:SingleColumn>
            <acms:SingleColumn ID="SingleColumn2" runat="server">
                <span>25x25</span>
                <div style="text-align:center">  
                    <acms:AcmsImage ID="img2525" RenderHeight="25" RenderWidth="25" FileId='<%#Eval("ThumbnailId") %>' runat="server" />
                </div>
            </acms:SingleColumn>
        </acms:Columns>
        <asp:DetailsView ID="dvSummary" DataSourceID="dsSummary" DataKeyNames="Id, ConcurencyId" runat="server">
            <Fields>
                <acms:TextAreaField DataField="Summary"  />
            </Fields>
        </asp:DetailsView>
   </asp:Panel>
   <acms:PostDataSource ID="dsSummary" runat="server" />
</asp:Content>

